package com.ocl.www.service;

import com.ocl.www.domain.MyCollection;
import com.ocl.www.mapper.MyCollectionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/11/7.
 */
@Service
public class MyCollectionService {

    @Autowired
    private MyCollectionMapper myCollectionMapper;

    public int insertMyCollection(MyCollection myCollection)throws  Exception{

       Integer  c = myCollectionMapper.insertMyCollection(myCollection);
        return c;

    }

    public List<MyCollection> selectMyCollections(MyCollection myCollection) throws Exception{
        return myCollectionMapper.selectMyCollections(myCollection);
    }

    public int deleteMyCollection(MyCollection myCollection)  throws Exception{
        return myCollectionMapper.deleteMyCollection(myCollection);
    }
}
